﻿using _12Net8AspNetCore_MVC.Models;
using Microsoft.AspNetCore.Mvc;

namespace _12Net8AspNetCore_MVC.Controllers
{
    public class ReportModelController : Controller
    {
        //public IActionResult Index()
        //{
        //    return View();
        //}


        //public IActionResult Index()
        //{
        //    Order order = new Order() { ID = 1, Name = "订单"};
        //    return View(order);
        //}
        public IActionResult Index()
        {
            ReportModel orderProduct = new ReportModel();
            orderProduct.Order = new Order() { ID = 1, Name = "订单" };
            orderProduct.Product = new Product() { ID = 1, Name = "产品" };
            return View("Index", orderProduct);
        }
    }
}
